#ifndef KNNCLASSIFIER_H
#define KNNCLASSIFIER_H

#include "Classifier.h"

namespace fc 
{

using namespace std;

class KnnClassifier : public Classifier
{
    vector<Example> trains;
    int attrs;
public:
    void setTrainingData ( const vector<Example> & data, int attributes );
    Result classify( const vector< double >& example ) const;

private:
    static double findMeasure(const Example & example, const vector< double > & testExample, int attributes);
};

}

#endif